<!-- <h1>{{ question.question_text }}</h1>

<ul>
{% for choice in question.choice_set.all %}
    <li>{{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
{% endfor %}
</ul>

<a href="{% url 'polls:detail' question.id %}">Vote again?</a> -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Results: {{ question.question_text }}</title>
    <style>
        :root {
            --primary: #6c5ce7;
            --secondary: #a29bfe;
            --accent: #fd79a8;
            --light: #f8f9fa;
            --dark: #2d3436;
            --success: #00b894;
            --info: #0984e3;
            --warning: #fdcb6e;
            --danger: #d63031;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        h1 {
            color: var(--primary);
            text-align: center;
            margin-bottom: 30px;
            font-size: 2rem;
            position: relative;
            padding-bottom: 15px;
        }
        
        h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--accent));
            border-radius: 2px;
        }
        
        .results-container {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }
        
        .results-container::before {
            content: '';
            position: absolute;
            top: -50px;
            left: -50px;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
            opacity: 0.1;
            z-index: 0;
        }
        
        ul {
            padding-left: 0;
            list-style: none;
            position: relative;
            z-index: 1;
        }
        
        li {
            padding: 15px 0;
            border-bottom: 1px solid rgba(162, 155, 254, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }
        
        li:hover {
            background: rgba(162, 155, 254, 0.05);
            transform: translateX(5px);
        }
        
        li:last-child {
            border-bottom: none;
        }
        
        .choice-text {
            font-weight: 500;
        }
        
        .vote-count {
            font-weight: bold;
            color: white;
            background: var(--primary);
            padding: 5px 15px;
            border-radius: 20px;
            min-width: 80px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
        }
        
        .actions {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
        }
        
        .vote-again {
            display: inline-block;
            padding: 12px 30px;
            background: linear-gradient(to right, var(--primary), var(--accent));
            color: white;
            border-radius: 30px;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .vote-again:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(108, 92, 231, 0.6);
        }
        
        .back-to-polls {
            display: inline-block;
            padding: 12px 30px;
            background: white;
            color: var(--primary);
            border-radius: 30px;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: bold;
            border: 2px solid var(--primary);
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        
        .back-to-polls:hover {
            background: rgba(108, 92, 231, 0.1);
            transform: translateY(-3px);
        }
        
        .chart-container {
            margin: 30px 0;
            height: 300px;
            position: relative;
        }
    </style>
</head>
<body>
    <h1>{{ question.question_text }}</h1>
    
    <div class="results-container">
        <ul>
        {% for choice in question.choice_set.all %}
            <li>
                <span class="choice-text">{{ choice.choice_text }}</span>
                <span class="vote-count">{{ choice.votes }} vote{{ choice.votes|pluralize }}</span>
            </li>
        {% endfor %}
        </ul>
    </div>
    
    <div class="actions">
        <a href="{% url 'polls:detail' question.id %}" class="vote-again">Vote Again</a>
        <a href="/polls/" class="back-to-polls">Back to Polls</a>
    </div>
</body>
</html>
